//package com.etc.config;
//
//import javax.annotation.Resource;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//import com.etc.common.MyRoleInterceptor;
//
//@Configuration
//public class MyRoleInterceptorConfig implements WebMvcConfigurer {
//
//	@Resource
//	private MyRoleInterceptor myRoleInterceptor;
//
//	@Override
//	public void addInterceptors(InterceptorRegistry registry) {
//		// 自定义拦截器，添加拦截路径和排除拦截路径
//		registry.addInterceptor(myRoleInterceptor).addPathPatterns("/admin/**").excludePathPatterns("/admin/login.action", "/admin/info.action");
//	}
//
//}
